package com.kmzx.one.project.mapper;

import com.kmzx.one.project.entity.UserAuthentication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Mapper
@Repository
public interface UserAuthenticationMapper {
    void insert(UserAuthentication auth);

    int updateUserAuth(@Param("userId") String userId, @Param("username") String username, @Param("idCard") String idCard, @Param("updateTime") Date updateTime);

    UserAuthentication selectByUserId(String userId);
}
